package com.cloudbroker.openapi.manage.controller;

import com.cloudbroker.bcs.common.util.VOUtil;
import com.cloudbroker.bcs.csvc.lightinvesting.api.t2service.LedSecT2Service;
import com.cloudbroker.bcs.csvc.lightinvesting.api.vo.request.baseRelevanted.*;
import com.cloudbroker.bcs.csvc.lightinvesting.api.vo.request.cashTransactions.*;
import com.cloudbroker.bcs.csvc.lightinvesting.api.vo.request.fansRelated.*;
import com.cloudbroker.bcs.csvc.lightinvesting.api.vo.request.interestRelated.*;
import com.cloudbroker.bcs.csvc.lightinvesting.api.vo.response.*;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.transaction.back.CombineSearchList;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.transaction.back.ExtcomacctVagueQryList;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.transaction.vo.CombineMidSearchForm;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.transaction.vo.ExtcomacctVagueForm;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.transaction.vo.MiddleComUserSignRenewForm;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.transaction.vo.SignapplyForm;
import com.cloudbroker.bcs.platform.ltb.bizapi.t2service.transaction.ComUserSignT2BizService;
import com.cloudbroker.bcs.platform.ltb.bizapi.t2service.transaction.CombineT2BizService;
import com.cloudbroker.bcs.platform.ltb.bizapi.t2service.transaction.IndiviDemandT2BizService;
import com.cloudbroker.bcs.platform.ltb.common.ext.annotation.SaveLog;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import static com.cloudbroker.bcs.platform.ltb.common.util.RequestUtil.getSingleParameterMapForBody;

/**
 * Created by fangyf18371 on 2016/8/19.
 * 二期接口
 */
@Controller
public class LedSecController {
    @Resource
    private LedSecT2Service ledSecT2Service;
    @Resource
    private CombineT2BizService combineT2BizService;
    @Resource
    private IndiviDemandT2BizService indiviDemandT2BizService;
    @Resource
    private ComUserSignT2BizService comUserSignT2BizService;

    /**
     * 可撤委托明细查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/comentrust_detail_withdraw_qry")
    @SaveLog(remark = "可撤委托明细查询")
    public WithdrawEntrusQryBackVo func_comentrust_detail_withdraw_qry(HttpServletRequest request, String jsonpcallback) {
        WithdrawEntrusForm form = getSingleParameterMapForBody(request , WithdrawEntrusForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_comentrust_detail_withdraw_qry(form), jsonpcallback);
    }

    /**
     * 个股委托撤单
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/comentrust_detail_order_withdraw")
    @SaveLog(remark = "个股委托撤单")
    public StocksEntrustWithdrawVo func_comentrust_detail_order_withdraw(HttpServletRequest request, String jsonpcallback){
        StocksEntrustWithdrawForm form = getSingleParameterMapForBody(request , StocksEntrustWithdrawForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_comentrust_detail_order_withdraw(form), jsonpcallback);
    }

    /**
     * 存管资金账户资金查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/bankfund_qry")
    @SaveLog(remark = "存管资金账户资金查询")
    public BankfundQryBackVo func_bankfund_qry(HttpServletRequest request, String jsonpcallback){
        BankfundQryForm form = getSingleParameterMapForBody(request , BankfundQryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_bankfund_qry(form), jsonpcallback);
    }

    /**
     * 银行转账日志查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/bktransfer_qry")
    @SaveLog(remark = "银行转账日志查询")
    public BktransferQryBackVo func_bktransfer_qry(HttpServletRequest request, String jsonpcallback){
        BktransferQryForm form = getSingleParameterMapForBody(request , BktransferQryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_bktransfer_qry(form), jsonpcallback);
    }

    /**
     * 银行转账
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/banktransfer")
    @SaveLog(remark = "银行转账")
    public BanktransferVo func_banktransfer(HttpServletRequest request, String jsonpcallback){
        BanktransferForm form = getSingleParameterMapForBody(request , BanktransferForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_banktransfer(form), jsonpcallback);
    }

    /**
     * 银行余额查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/bankbalance_qry")
    @SaveLog(remark = "银行余额查询")
    public BankbalanceQryVo func_bankbalance_qry(HttpServletRequest request, String jsonpcallback){
        BankbalanceQryForm form = getSingleParameterMapForBody(request , BankbalanceQryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_bankbalance_qry(form), jsonpcallback);
    }

    /**
     * 单日成交查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/realtime_qry")
    @SaveLog(remark = "单日成交查询")
    public RealtimeQryBackVo func_realtime_qry(HttpServletRequest request, String jsonpcallback){
        RealtimeQryForm form = getSingleParameterMapForBody(request , RealtimeQryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_realtime_qry(form), jsonpcallback);
    }

    /**
     * 银行账户查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/bankaccout_qry")
    @SaveLog(remark = "银行账户查询")
    public BankaccoutQryBackVo func_bankaccout_qry(HttpServletRequest request, String jsonpcallback){
        BankaccoutQryForm form = getSingleParameterMapForBody(request , BankaccoutQryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_bankaccout_qry(form), jsonpcallback);
    }

    /**
     * 历史成交查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/his_realtime_qry")
    @SaveLog(remark = "历史成交查询")
    public HisRealtimeQryBackVo func_his_realtime_qry(HttpServletRequest request, String jsonpcallback){
        HisRealtimeQryForm form = getSingleParameterMapForBody(request , HisRealtimeQryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_his_realtime_qry(form), jsonpcallback);
    }

    /**
     * 大约可买获取
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/almostbuy_qry")
    @SaveLog(remark = "大约可买获取")
    public AlmostbuyQryVo func_almostbuy_qry(HttpServletRequest request, String jsonpcallback){
        AlmostbuyQryForm form = getSingleParameterMapForBody(request , AlmostbuyQryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_almostbuy_qry(form), jsonpcallback);
    }

    /**
     * 证券成交查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/securities_deal_qry")
    @SaveLog(remark = "证券成交查询")
    public SecuritiesDealQryBackVo func_securities_deal_qry(HttpServletRequest request, String jsonpcallback){
        SecuritiesDealQryForm form = getSingleParameterMapForBody(request , SecuritiesDealQryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_securities_deal_qry(form), jsonpcallback);
    }

    /**
     * 客户盈亏查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/income_balance_qry")
    @SaveLog(remark = "客户盈亏查询")
    public IncomeBalanceQryVo func_income_balance_qry(HttpServletRequest request, String jsonpcallback){
        IncomeBalanceQryForm form = getSingleParameterMapForBody(request , IncomeBalanceQryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_income_balance_qry(form), jsonpcallback);
    }

    /**
     * 历史资金证券流水查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/his_com_fundstock_qry")
    @SaveLog(remark = "历史资金证券流水查询")
    public HisComFundstockQryBackVo func_his_com_fundstock_qry(HttpServletRequest request, String jsonpcallback){
        HisComFundstockQryForm form = getSingleParameterMapForBody(request , HisComFundstockQryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_his_com_fundstock_qry(form), jsonpcallback);
    }

    /**
     * 历史交割信息查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/his_com_deliver_qry")
    @SaveLog(remark = "历史交割信息查询")
    public HisComDeliverQryBackVo func_his_com_deliver_qry(HttpServletRequest request, String jsonpcallback){
        HisComDeliverQryForm form = getSingleParameterMapForBody(request , HisComDeliverQryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_his_com_deliver_qry(form), jsonpcallback);
    }

    /**
     * 新股认购信息查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/his_com_secuipoinfo_qry")
    @SaveLog(remark = "新股认购信息查询")
    public HisComSecuipoinfoQryBackVo func_his_com_secuipoinfo_qry(HttpServletRequest request, String jsonpcallback){
        HisComSecuipoinfoQryForm form = getSingleParameterMapForBody(request , HisComSecuipoinfoQryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_his_com_secuipoinfo_qry(form), jsonpcallback);
    }

    /**
     * 历史配号信息查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/his_com_matchinfo_nopwdqry")
    @SaveLog(remark = "历史配号信息查询")
    public HisComMatchinfoNopwdQryBackVo func_his_com_matchinfo_nopwdqry(HttpServletRequest request, String jsonpcallback){
        HisComMatchinfoNopwdQryForm form = getSingleParameterMapForBody(request , HisComMatchinfoNopwdQryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_his_com_matchinfo_nopwdqry(form), jsonpcallback);
    }

    /**
     * 历史中签信息查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/his_com_luckyinfo_nopwdqry")
    @SaveLog(remark = "历史中签信息查询")
    public HisComLuckyinfonNopwdQryBackVo func_his_com_luckyinfo_nopwdqry(HttpServletRequest request, String jsonpcallback){
        HisComLuckyinfonNopwdQryForm form = getSingleParameterMapForBody(request , HisComLuckyinfonNopwdQryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_his_com_luckyinfo_nopwdqry(form), jsonpcallback);
    }

    /**
     * 交易密码修改
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/trad_pwd_mod")
    @SaveLog(remark = "交易密码修改")
    public TradPwdModVo func_trad_pwd_mod(HttpServletRequest request, String jsonpcallback){
        TradPwdModForm form = getSingleParameterMapForBody(request , TradPwdModForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_trad_pwd_mod(form), jsonpcallback);
    }

    /**
     * 当日成交组合信息修改
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/realtime_combine_qry")
    @SaveLog(remark = "当日成交组合信息修改")
    public RealtimeCombineQryBackVo func_realtime_combine_qry(HttpServletRequest request, String jsonpcallback){
        RealtimeCombineQryForm form = getSingleParameterMapForBody(request , RealtimeCombineQryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_realtime_combine_qry(form), jsonpcallback);
    }

    /**
     * 组合调整持仓信息查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/combine_adjust_qry")
    @SaveLog(remark = "组合调整持仓信息查询")
    public CombineAdjustQryBackVo func_combine_adjust_qry(HttpServletRequest request, String jsonpcallback) {
        CombineAdjustQryForm form = getSingleParameterMapForBody(request, CombineAdjustQryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_combine_adjust_qry(form), jsonpcallback);
    }

    /**
     * 用户调仓记录信息查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/user_transfer_qry")
    @SaveLog(remark = "用户调仓记录信息查询")
    public UserTransferQryBackVo func_user_transfer_qry(HttpServletRequest request, String jsonpcallback){
        UserTransferQryForm form = getSingleParameterMapForBody(request, UserTransferQryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_user_transfer_qry(form), jsonpcallback);
    }

    /**
     * 支付申请
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/compay_apply")
    @SaveLog(remark = "支付申请")
    public CompayApplyVo func_compay_apply(HttpServletRequest request, String jsonpcallback){
        CompayApplyForm form = getSingleParameterMapForBody(request, CompayApplyForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_compay_apply(form), jsonpcallback);
    }

    /**
     * 支付确认
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/compay_identify")
    @SaveLog(remark = "支付确认")
    public CompayIdentifyVo func_compay_identify(HttpServletRequest request, String jsonpcallback) {
        CompayIdentifyForm form = getSingleParameterMapForBody(request, CompayIdentifyForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_compay_identify(form), jsonpcallback);
    }

    /**
     * 支付结果通知
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/compay_confirm")
    @SaveLog(remark = "支付结果通知")
    public CompayConfirmVo func_compay_confirm(HttpServletRequest request, String jsonpcallback) {
        CompayConfirmForm form = getSingleParameterMapForBody(request, CompayConfirmForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_compay_confirm(form), jsonpcallback);
    }

    /**
     * 支付申请查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/compay_apply_qry")
    @SaveLog(remark = "支付申请查询")
    public CompayApplyQryBackVo func_compay_apply_qry(HttpServletRequest request, String jsonpcallback) {
        CompayApplyQryForm form = getSingleParameterMapForBody(request, CompayApplyQryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_compay_apply_qry(form), jsonpcallback);
    }

    /**
     * 账户绑定关系查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/comuser_businacct_qry")
    @SaveLog(remark = "账户绑定关系查询")
    public ComuserBusinacctQryBackVo func_comuser_businacct_qry(HttpServletRequest request, String jsonpcallback) {
        ComuserBusinacctQryForm form = getSingleParameterMapForBody(request, ComuserBusinacctQryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_comuser_businacct_qry(form), jsonpcallback);
    }

    /**
     * 组合搜索
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/combine_search")
    @SaveLog(remark = "组合搜索")
    public CombineSearchList func_combine_search(HttpServletRequest request, String jsonpcallback) {
        CombineMidSearchForm form = getSingleParameterMapForBody(request, CombineMidSearchForm.class);
        return VOUtil.setJsonpResult(combineT2BizService.CombineSearch(form), jsonpcallback);
//        return VOUtil.setJsonpResult(ledSecT2Service.func_combine_search(form), jsonpcallback);
    }

    /**
     * 投顾创建
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/comadviser_build")
    @SaveLog(remark = "投顾创建")
    public ComadviserBuildVo func_comadviser_build(HttpServletRequest request, String jsonpcallback){
        ComadviserBuildForm form = getSingleParameterMapForBody(request, ComadviserBuildForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_comadviser_build(form), jsonpcallback);
    }

    /**
     * 组合关注续费
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/combine_focus_renew")
    @SaveLog(remark = "组合关注续费")
    public CombineFocusRenewVo func_combine_focus_renew(HttpServletRequest request, String jsonpcallback){
        CombineFocusRenewForm form = getSingleParameterMapForBody(request, CombineFocusRenewForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_combine_focus_renew(form), jsonpcallback);
    }

    /**
     * 达人签约续费
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/comuser_sign_renew")
    @SaveLog(remark = "达人签约续费")
    public ComuserSignRenewVo func_comuser_sign_renew(HttpServletRequest request, String jsonpcallback){
        MiddleComUserSignRenewForm form = getSingleParameterMapForBody(request, MiddleComUserSignRenewForm.class);
//        return VOUtil.setJsonpResult(ledSecT2Service.func_comuser_sign_renew(form), jsonpcallback);
        return VOUtil.setJsonpResult(comUserSignT2BizService.func_comuser_sign_renew(form), jsonpcallback);

    }

    /**
     * 组合订阅客户查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/combine_focus_num_qry")
    @SaveLog(remark = "组合订阅客户查询")
    public CombineFocusNumQryBackVo func_combine_focus_num_qry(HttpServletRequest request, String jsonpcallback){
        CombineFocusNumQryForm form = getSingleParameterMapForBody(request, CombineFocusNumQryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_combine_focus_num_qry(form), jsonpcallback);
    }

    /**
     * 组合收藏客户查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/combine_collect_num_qry")
    @SaveLog(remark = "组合收藏客户查询")
    public CombineCollectNumQryBackVo func_combine_collect_num_qry(HttpServletRequest request, String jsonpcallback){
        CombineCollectNumQryForm form = getSingleParameterMapForBody(request, CombineCollectNumQryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_combine_collect_num_qry(form), jsonpcallback);
    }

    /**
     * 投顾团队信息查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/comadviserteam_qry")
    @SaveLog(remark = "投顾团队信息查询")
    public ComadviserteamQryBackVo func_comadviserteam_qry(HttpServletRequest request, String jsonpcallback){
        ComadviserteamQryForm form = getSingleParameterMapForBody(request, ComadviserteamQryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_comadviserteam_qry(form), jsonpcallback);
    }

    /**
     * 支付信息查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/tip_info_qry")
    @SaveLog(remark = "支付信息查询")
    public TipInfoQryBackVo func_tip_info_qry(HttpServletRequest request, String jsonpcallback){
        TipInfoQryForm form = getSingleParameterMapForBody(request, TipInfoQryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_tip_info_qry(form), jsonpcallback);
    }

    /**
     * 达人简介信息修改
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/comadviser_bginfo_mod")
    @SaveLog(remark = "达人简介信息修改")
    public ComadviserBginfoModVo func_comadviser_bginfo_mod(HttpServletRequest request, String jsonpcallback){
        ComadviserBginfoModForm form = getSingleParameterMapForBody(request, ComadviserBginfoModForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_comadviser_bginfo_mod(form), jsonpcallback);
    }

    /**
     * 组合状态信息修改
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/extcombine_combinestatus_mod")
    @SaveLog(remark = "组合状态信息修改")
    public ExtcombineCombinestatusModVo func_extcombine_combinestatus_mod(HttpServletRequest request, String jsonpcallback){
        ExtcombineCombinestatusModForm form = getSingleParameterMapForBody(request, ExtcombineCombinestatusModForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_extcombine_combinestatus_mod(form), jsonpcallback);
    }

    /**
     * 用户汇总关系查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/comuser_relation_num_qry")
    @SaveLog(remark = "用户汇总关系查询")
    public ComuserRelationNumQryVo func_comuser_relation_num_qry(HttpServletRequest request, String jsonpcallback){
        ComuserRelationNumQryForm form = getSingleParameterMapForBody(request, ComuserRelationNumQryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_comuser_relation_num_qry(form), jsonpcallback);
    }

    /**
     * 投顾订阅查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/adviser_focus_num_qry")
    @SaveLog(remark = "投顾订阅查询")
    public AdviserFocusNumQryVo func_adviser_focus_num_qry(HttpServletRequest request, String jsonpcallback){
        AdviserFocusNumQryForm form = getSingleParameterMapForBody(request, AdviserFocusNumQryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_adviser_focus_num_qry(form), jsonpcallback);
    }

    /**
     * 投顾收藏查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/adviser_collect_num_qry")
    @SaveLog(remark = "投顾收藏查询")
    public AdviserCollectNumQryBackVo func_adviser_collect_num_qry(HttpServletRequest request, String jsonpcallback){
        AdviserCollectNumQryForm form = getSingleParameterMapForBody(request, AdviserCollectNumQryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_adviser_collect_num_qry(form), jsonpcallback);
    }

    /**
     * 投顾组合胜率查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/comdata_adviserbine_successrate_qry")
    @SaveLog(remark = "投顾组合胜率查询")
    public ComdataAdviserbineSuccessrateQryBackVo func_comdata_adviserbine_successrate_qry(
            HttpServletRequest request, String jsonpcallback){
        ComdataAdviserbineSuccessrateQryForm form = getSingleParameterMapForBody(request, ComdataAdviserbineSuccessrateQryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_comdata_adviserbine_successrate_qry(form), jsonpcallback);
    }

    /**
     * 组合申请信息查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/combineapply_query")
    @SaveLog(remark = "组合申请信息查询")
    public CombineapplyQueryBackVo func_combineapply_query(HttpServletRequest request, String jsonpcallback){
        CombineapplyQueryForm form = getSingleParameterMapForBody(request, CombineapplyQueryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_combineapply_query(form), jsonpcallback);
    }

    /**
     * 个股委托投资依据修改
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/comtrade_entrustreason_mod")
    @SaveLog(remark = "个股委托投资依据修改")
    public ComtradeEntrustreasonModVo func_comtrade_entrustreason_mod(HttpServletRequest request, String jsonpcallback){
        ComtradeEntrustreasonModForm form = getSingleParameterMapForBody(request, ComtradeEntrustreasonModForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_comtrade_entrustreason_mod(form), jsonpcallback);
    }

    /**
     * 投顾模糊搜索
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/extcomacct_vague_qry")
    @SaveLog(remark = "投顾模糊搜索")
    public ExtcomacctVagueQryList func_extcomacct_vague_qry(HttpServletRequest request, String jsonpcallback){
        ExtcomacctVagueForm form = getSingleParameterMapForBody(request, ExtcomacctVagueForm.class);
        return VOUtil.setJsonpResult(combineT2BizService.func_extcomacct_vague_qry(form), jsonpcallback);
    }

    /**
     * 订阅取消应退金额查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/extcombine_refundbalance_qry")
    @SaveLog(remark = "订阅取消应退金额查询")
    public UnsubscribeRefundVo func_extcombine_refundbalance_qry(HttpServletRequest request, String jsonpcallback){
        UnsubscribeRefundForm form = getSingleParameterMapForBody(request, UnsubscribeRefundForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_extcombine_refundbalance_qry(form), jsonpcallback);
    }

    /**
     * 解约应退金额查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/extcomacct_refundbalance_qry")
    @SaveLog(remark = "解约应退金额查询")
    public ExtcomaRfundqryVo func_extcomacct_refundbalance_qry(HttpServletRequest request, String jsonpcallback){
        ExtcomaRfundqryForm form = getSingleParameterMapForBody(request, ExtcomaRfundqryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_extcomacct_refundbalance_qry(form), jsonpcallback);
    }

    /**
     * 达人推荐设置
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/extcomacct_adviser_recommend")
    @SaveLog(remark = "达人推荐设置")
    public ExtcomacctAdviserRecommendVo func_extcomacct_adviser_recommend(HttpServletRequest request, String jsonpcallback){
        ExtcomacctAdviserRecommendForm form = getSingleParameterMapForBody(request, ExtcomacctAdviserRecommendForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_extcomacct_adviser_recommend(form), jsonpcallback);
    }

    /**
     * 达人推荐取消
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/extcomacct_adviser_recommend_cancel")
    @SaveLog(remark = "达人推荐取消")
    public ExtcomacctAdviserRecommendCancelVo func_extcomacct_adviser_recommend_cancel(
            HttpServletRequest request, String jsonpcallback){
        ExtcomacctAdviserRecommendCancelForm form = getSingleParameterMapForBody(request, ExtcomacctAdviserRecommendCancelForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_extcomacct_adviser_recommend_cancel(form), jsonpcallback);
    }

    /**
     * 组合推荐设置
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/extcombine_combine_recommend")
    @SaveLog(remark = "组合推荐设置")
    public ExtcombineCombineRecommendVo func_extcombine_combine_recommend(HttpServletRequest request, String jsonpcallback){
        ExtcombineCombineRecommendForm form = getSingleParameterMapForBody(request, ExtcombineCombineRecommendForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_extcombine_combine_recommend(form), jsonpcallback);
    }

    /**
     * 组合推荐取消
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/extcombine_combine_recommend_cancel")
    @SaveLog(remark = "组合推荐取消")
    public ExtcombineCombineRecommendCancelVo func_extcombine_combine_recommend_cancel(HttpServletRequest request, String jsonpcallback){
        ExtcombineCombineRecommendCancelForm form = getSingleParameterMapForBody(request, ExtcombineCombineRecommendCancelForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_extcombine_combine_recommend_cancel(form), jsonpcallback);
    }

    /**
     * 最大回撤率查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/extcomdata_max_withdrawal_rate_qry")
    @SaveLog(remark = "最大回撤率查询")
    public MaxRetreatQryVo func_extcomdata_max_withdrawal_rate_qry(HttpServletRequest request, String jsonpcallback){
        MaxRetreatQryForm form = getSingleParameterMapForBody(request, MaxRetreatQryForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_extcomdata_max_withdrawal_rate_qry(form), jsonpcallback);
    }

    /**
     * 达人签约申请查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/extcomacct_signapply_qry")
    @SaveLog(remark = "达人签约申请查询")
    public SignapplyQryBackVo func_extcomacct_signapply_qry( HttpServletRequest request, String jsonpcallback){
//        SignapplyQryForm form = getSingleParameterMapForBody(request, SignapplyQryForm.class);
          SignapplyForm form=getSingleParameterMapForBody(request, SignapplyForm.class);
//        return VOUtil.setJsonpResult(ledSecT2Service.func_extcomacct_signapply_qry(form), jsonpcallback);
        return VOUtil.setJsonpResult(indiviDemandT2BizService.func_extcomacct_signapply_qry(form),jsonpcallback);
    }

    /**
     * 达人续约申请审核通过
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/extcomacct_signrenew_verify")
    @SaveLog(remark = "达人续约申请审核通过")
    public SignrenewVerifyVo func_extcomacct_signrenew_verify(HttpServletRequest request, String jsonpcallback){
        SignrenewVerifyForm form = getSingleParameterMapForBody(request, SignrenewVerifyForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_extcomacct_signrenew_verify(form), jsonpcallback);
    }

    /**
     * 达人续约申请审核不通过
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/extcomacct_signrenew_notverify")
    @SaveLog(remark = "达人续约申请审核不通过")
    public SignrenewNotverifyVo func_extcomacct_signrenew_notverify(HttpServletRequest request, String jsonpcallback){
        SignrenewNotverifyForm form = getSingleParameterMapForBody(request, SignrenewNotverifyForm.class);
        return VOUtil.setJsonpResult(ledSecT2Service.func_extcomacct_signrenew_notverify(form), jsonpcallback);
    }
}
